package com.xl.exp;

import cn.hutool.http.Header;
import cn.hutool.http.HttpRequest;
import cn.hutool.http.HttpUtil;

import java.nio.charset.Charset;
import java.util.HashMap;

public class Test {

    public static void main(String[] args) {

        String url = "http://hq.sinajs.cn/list=sz002777";

        HashMap<String, Object> paramMap = new HashMap<>();
        paramMap.put("","");

        String listContent = HttpUtil.get("http://hq.sinajs.cn/list=sz002777",Charset.forName("GBK"));

        listContent = listContent.substring(listContent.indexOf("\"") + 1, listContent.lastIndexOf("\""));

        String[] arr = listContent.split(",");

        for(String tmp : arr){
            System.out.println(tmp);
        }

        System.out.println("完成");
    }
}
